webpackJsonp([18],{

/***/ "Dppj":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/promise.js
var promise = __webpack_require__("rVsN");
var promise_default = /*#__PURE__*/__webpack_require__.n(promise);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__("KH7x");
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// EXTERNAL MODULE: ./src/common/utils/index.js
var utils = __webpack_require__("dh3M");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/anjian/emergency/components/detail.vue




//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var detail = ({
  data: function data() {
    return {
      item: {}
    };
  },

  props: {
    id: {}
  },
  methods: {
    /**
     * yj_emergency_information 事故信息表
     */
    initData: function initData() {
      var _this = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var p, _ref, _ref2, item, entList, accidentTypeDic;

        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                p = [commonApi["a" /* commonApi */].searchById('yj_emergency_information', _this.id), commonApi["a" /* commonApi */].search('ent_enterprise'), commonApi["a" /* commonApi */].dictionary('Accident_type')];
                _context.next = 3;
                return promise_default.a.all(p);

              case 3:
                _ref = _context.sent;
                _ref2 = slicedToArray_default()(_ref, 3);
                item = _ref2[0];
                entList = _ref2[1];
                accidentTypeDic = _ref2[2];
                _context.next = 10;
                return Object(utils["d" /* ReplaceDictionary */])(item, {
                  accident_type: accidentTypeDic,
                  "enterprise_name:EnterpriseName:id": entList
                });

              case 10:
                _this.item = _context.sent;

              case 11:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this);
      }))();
    }
  },
  watch: {
    id: function id() {
      this.initData();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-6295f1e7","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/anjian/emergency/components/detail.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('yt-card',{attrs:{"title":"基本信息"}},[_c('yt-cell',{attrs:{"label":"事故企业","value":_vm.item.enterprise_name}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"事故类型","value":_vm.item.accident_type}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"事发地点","value":_vm.item.accident_place}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"事发时间","value":_vm._f("formatTime")(_vm.item.createdAt)}}),_vm._v(" "),_c('yt-textarea',{attrs:{"disabled":"","title":"初步原因"},model:{value:(_vm.item.preliminary_cause),callback:function ($$v) {_vm.$set(_vm.item, "preliminary_cause", $$v)},expression:"item.preliminary_cause"}}),_vm._v(" "),_c('yt-textarea',{attrs:{"disabled":"","title":"简要经过"},model:{value:(_vm.item.things_go_through),callback:function ($$v) {_vm.$set(_vm.item, "things_go_through", $$v)},expression:"item.things_go_through"}})],1),_vm._v(" "),_c('yt-card',{attrs:{"title":"报告人信息"}},[_c('yt-cell',{attrs:{"label":"所在部门","value":_vm.item.text}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"报警人","value":_vm.item.name}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"职务","value":_vm.item.post}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"报警电话","border":"none"}},[_c('yt-cell-call',{attrs:{"tel":_vm.item.telephone || ''}})],1)],1),_vm._v(" "),_c('yt-card',{attrs:{"title":"伤亡情况"}},[_c('yt-cell',{attrs:{"label":"死亡人数","value":((_vm.item.Casualty || 0) + "人（预估）")}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"重伤人数","value":((_vm.item.serious_injury || 0) + "人（预估）")}}),_vm._v(" "),_c('yt-cell',{attrs:{"label":"经济损失","value":((_vm.item.economics || 0) + "万元（预估）")}}),_vm._v(" "),_c('yt-textarea',{attrs:{"disabled":"","title":"撤离情况"},model:{value:(_vm.item.evacuate),callback:function ($$v) {_vm.$set(_vm.item, "evacuate", $$v)},expression:"item.evacuate"}}),_vm._v(" "),_c('yt-textarea',{attrs:{"disabled":"","title":"环境影响"},model:{value:(_vm.item.contaminated),callback:function ($$v) {_vm.$set(_vm.item, "contaminated", $$v)},expression:"item.contaminated"}}),_vm._v(" "),_c('yt-textarea',{attrs:{"disabled":"","title":"协调事项"},model:{value:(_vm.item.help),callback:function ($$v) {_vm.$set(_vm.item, "help", $$v)},expression:"item.help"}})],1),_vm._v(" "),_c('yt-card',{attrs:{"title":"附件"}},[_c('yt-file',{attrs:{"uploadFile":function (){},"disabled":true},model:{value:(_vm.item.file),callback:function ($$v) {_vm.$set(_vm.item, "file", $$v)},expression:"item.file"}})],1)],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var components_detail = (esExports);
// CONCATENATED MODULE: ./src/common/anjian/emergency/components/detail.vue
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  detail,
  components_detail,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var emergency_components_detail = __webpack_exports__["a"] = (Component.exports);


/***/ }),

/***/ "nAI1":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./src/common/anjian/emergency/components/detail.vue + 2 modules
var detail = __webpack_require__("Dppj");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/anjian/emergency/accidentProfile.vue
//
//
//
//
//
//


/* harmony default export */ var accidentProfile = ({
  data: function data() {
    return {
      id: ''
    };
  },

  components: { detail: detail["a" /* default */] },
  activated: function activated() {
    this.id = this.$route.query.id;
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-98c26da0","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/anjian/emergency/accidentProfile.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{attrs:{"title":"事故简况","scroll":""}},[_c('detail',{attrs:{"id":_vm.id}})],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var emergency_accidentProfile = (esExports);
// CONCATENATED MODULE: ./src/common/anjian/emergency/accidentProfile.vue
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  accidentProfile,
  emergency_accidentProfile,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var anjian_emergency_accidentProfile = __webpack_exports__["default"] = (Component.exports);


/***/ })

});